import request from '@/utils/request'

// 查询资金支出记录 列表
export function listExpenditure(query) {
  return request({
    url: '/funding/expenditure/list',
    method: 'get',
    params: query
  })
}

// 查询资金支出记录 详细
export function getExpenditure(expenditureId) {
  return request({
    url: '/funding/expenditure/' + expenditureId,
    method: 'get'
  })
}

// 新增资金支出记录 
export function addExpenditure(data) {
  return request({
    url: '/funding/expenditure',
    method: 'post',
    data: data
  })
}

// 修改资金支出记录 
export function updateExpenditure(data) {
  return request({
    url: '/funding/expenditure',
    method: 'put',
    data: data
  })
}

// 删除资金支出记录 
export function delExpenditure(expenditureId) {
  return request({
    url: '/funding/expenditure/' + expenditureId,
    method: 'delete'
  })
}
